<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="zh" xml:lang="zh">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>工具向导: 使用 Rational XDE Developer 确定设计元素</title>
<meta content="ToolMentor" name="uma.type">
<meta content="identifying_design_elements" name="uma.name">
<meta content="使用 Rational XDE Developer 确定设计元素" name="uma.presentationName">
<meta content="Tool:rup_xde:Rational XDE Developer" name="uma.category">
<meta name="element_type" content="tool_mentor">
<meta content="Rational XDE Developer" name="tool">
<meta content="description" name="filetype">
<meta name="role" content="">
<link type="text/css" href="./../../../css/default.css" rel="StyleSheet">
<script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageResource.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSubSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageToolbar.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/contentPage.js"></script><script language="JavaScript" type="text/javascript">
					var backPath = './../../../';
					var imgPath = './../../../images/';
					var nodeInfo=[{view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_gpYSoAILEdq-_NKqZM1EhA", "_qS-iwAIOEdqTna4sZVFRow", "{303A82D2-E3AB-4501-8563-0D4D43782AF9}", "{E6727D13-BE7B-4025-AD39-ECD6FA074D73}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_zRigkAILEdq-_NKqZM1EhA", "_U5tiUAISEdqTna4sZVFRow", "{303A82D2-E3AB-4501-8563-0D4D43782AF9}", "{E6727D13-BE7B-4025-AD39-ECD6FA074D73}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_AUv4MAIMEdq-_NKqZM1EhA", "_5ZuQsAIUEdqEutyfYo0quQ", "{303A82D2-E3AB-4501-8563-0D4D43782AF9}", "{E6727D13-BE7B-4025-AD39-ECD6FA074D73}"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_jD8dUAIbEdqEutyfYo0quQ", "_F1OgYAIbEdqEutyfYo0quQ", "{303A82D2-E3AB-4501-8563-0D4D43782AF9}", "{E6727D13-BE7B-4025-AD39-ECD6FA074D73}"]}];
					contentPage.preload(imgPath, backPath, nodeInfo,  '', false, false, false);
				</script>
</head>
<body>
<div id="breadcrumbs"></div>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><a name="Top"></a>
<div id="page-guid" value="{E6727D13-BE7B-4025-AD39-ECD6FA074D73}"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap="true" class="pageTitle">工具向导：使用 Rational XDE Developer 确定设计元素</td><td width="100%">
<div id="contentPageToolbar" align="right"></div>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="pageTitleSeparator"><img height="1" title="" alt="" src="./../../../images/shim.gif"></td>
</tr>
</table>
<div class="overview">
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<tr>
<td width="50"><img title="" alt="" src="./../../../images/toolmentor.gif"></td><td>
<table cellpadding="0" cellspacing="0" border="0" class="overviewTable">
<tr>
<td valign="top">此工具向导描述如何执行“使用 Rational XDE Developer 确定设计元素”。</td>
</tr>
<tr>
<td>工具：<a href="./../../../core.base_rup/tools/rup_xde_D81FFA70.html" guid="{303A82D2-E3AB-4501-8563-0D4D43782AF9}">Rational XDE Developer</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">关系</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<th scope="row" class="sectionTableHeading">相关元素</th><td class="sectionTableCell">
<ul>
<li>
<a href="./../../../core.base_rup/tasks/identify_design_elements_E884AB82.html" guid="{97D7343A-6993-4AB7-8F86-4DAC8C9075C8}">确定设计元素</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">主要描述</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<td class="sectionTableSingleCell"><h3>
    概述&nbsp;
</h3>
<p>
    此工具向导支持使用 Rational XDE Developer － Java Platform Edition 确定设计元素。 &nbsp;&nbsp;
</p>
<ul>
    <li>
        此工具向导中的步骤与相应任务中的那些步骤相匹配。
    </li>
    <li>
        XDE 联机帮助中的主题链接标有<img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" />。
    </li>
    <li>
        在工具向导中，对要在当前迭代中设计的用例执行下列步骤：
    </li>
    <li style="LIST-STYLE-TYPE: none">
        <ul>
            <li>
                <a href="#Identify and Specify Events">确定事件和信号</a>
            </li>
            <li>
                <a href="#Identify Classes, Active Classes and Subsystems">确定类、活动类和子系统</a>
            </li>
            <li>
                <a href="#Identify Interfaces">确定子系统接口</a>
            </li>
            <li>
                <a href="#Identify Capsule Protocols">确定封装体协议</a>
            </li>
        </ul>
    </li>
</ul>
<p>
    体系结构上重要的设计元素可记录在单独的逻辑视图中，将随设计元素的确定而维护该视图。请参阅 <a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/whitepapers/model_structure_guidelines_for_rational_xde_developer_6D2FD64A.html" guid="2.67081400527339E-306">Rational XDE 模型构造指南</a>。
</p>
<h3>
    <a id="Identify and Specify Events" name="Identify and Specify Events">确定事件和信号</a>
</h3>
<p>
    应按需捕获事件的特征，以推动处理事件的设计元素的确定。此信息可以非正式方式记录（例如在独立的文档中），而不作为 Rational XDE 模型的一部分。
</p>
<p>
    异步通信事件可建模成信号，以表达承载的数据或表达信号之间的关系（如泛化关系）。以下子步骤描述如何对信号建模：
</p>
<ol>
    <li>
        按需要创建类图。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Diagrams</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_dgm"); -->。
    </li>
    <li>
        添加信号。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Shapes to Diagrams</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_shp_dgm"); -->。
    </li>
    <li>
        向每个设计元素添加简短的描述。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Documenting Model Elements</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_doc_model_elem"); -->.
    </li>
    <li>
        添加信号之间的泛化关系（如果适用）。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Generalization
        Relationships</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_genrlztn_relshp"); -->。
    </li>
</ol>
<p>
    有关类图的更多信息，请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Working with Class Diagrams</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_o_work_w_class_dgms"); -->。有关信号的更多信息，请参阅
    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Signals</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_c_signals"); -->。
</p>
<h3>
    <a id="Identify Classes, Active Classes and Subsystems" name="Identify Classes, Active Classes and Subsystems">确定类、活动类和子系统</a>
</h3>
<p>
    设计元素通常按照下列三种方式创建：
</p>
<ul>
    <li>
        建模（通过添加到类图）
    </li>
    <li>
        扩展模式
    </li>
    <li>
        编码和反向设计
    </li>
</ul>
<p>
    这些方法在接下来的部分中说明。
</p>
<h4>
    扩展模式
</h4>
<p>
    可使用设计模式确定设计元素。参考：<img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Implementing Design Patterns</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"ea","ea_o_rat_xde_pttrn"); -->
</p>
<p>
    确定可能有用的候选模式。请参考 Rational XDE 联机帮助中的以下主题：
</p>
<ul>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Applying the Gang of Four Sample Patterns</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"ea","ea_t_apply_gang_four_smpl_pttrn"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Store and Retrieve Patterns</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"ea","ea_o_stor_retriev_pttrn"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Pattern Libraries</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"ea","ea_o_pttrn_lib"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Import Patterns from RAS Assets</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"ea","ea_c_imp_pttrn_assets"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Import and Export Pattern Libraries</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"ea","ea_c_imp_exp_pttrn_libs"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Apply Patterns</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"ea","(ea_o_apply_pttrn"); -->
    </li>
</ul>
<h4>
    建模
</h4>
<p>
    在“设计模型”中创建类图以捕获设计元素。如果您决定维护分析类，那么您可能要建立到分析类的可跟踪性依赖关系。
</p>
<ol>
    <li>
        按需要创建类图。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Diagrams</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_dgm"); -->。
    </li>
    <li>
        添加子系统和类。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Shapes to Diagrams</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_shp_dgm"); -->。
    </li>
    <li>
        向每个设计元素添加简短的描述。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Documenting Model Elements</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_doc_model_elem"); -->.
    </li>
    <li>
        （可选）向分析类添加可跟踪性。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Abstraction Relationships</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_abstrctn_relshp"); -->。
    </li>
    <li>
        将设计元素组织为程序包。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Grouping Model Elements in Packages</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_group_mod_ele_package"); -->。另请参阅白皮书
        <a class="elementLinkWithUserText" href="./../../../core.base_rup/guidances/whitepapers/model_structure_guidelines_for_rational_xde_developer_6D2FD64A.html" guid="2.67081400527339E-306">Rational XDE 模型构造指南</a>。
    </li>
</ol>
<p>
    有关类图的更多信息，请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Working with Class Diagrams</i> 
    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_o_work_w_class_dgms"); -->。
</p><!-- begin - wsw -->
<p>
    有关 Java 建模的更多信息，请参阅 Rational XDE 联机帮助中的以下主题：
</p>
<ul>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Understanding Java Modeling</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","j_o_code_mdl_interact"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Modeling Java Elements</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","j_o_mod_jelem"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Modeling JavaBeans</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","j_o_mdlng_jbeans"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Modeling EJBs</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_o_mod_ejbs"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Modeling EJB Properties</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_o_mod_ejb_properties"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Modeling Servlets</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_o_mdlng_srvlts"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Modeling JavaServer Pages</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","wm_o_jsp"); -->
    </li>
    <li>
        <img alt="帮助手册图标 " src="./../../../core.base_rup/resources/helpbook.gif" /><i>Developing HTML Documents</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"wm","wm_o_devhtmldocs"); -->
    </li>
</ul><!-- end - wsw -->
<h4>
    编码和反向设计
</h4>
<p>
    另一种方法是以代码的形式勾画设计的轮廓，对其进行反向设计以创建骨干实施模型，然后将这些类拖放到“设计模型”中的图上。决定将设计类映射到特定于实施的类时，这种方法具有以下优点：
</p>
<ul>
    <li>
        作为可选方法，代码编辑器可以用于勾画接口、方法和属性的轮廓，方法是使用反向设计在模型中反映这些元素。
    </li>
    <li>
        可对现有代码资产进行反向设计并形成设计模型。
    </li>
    <li>
        在使用来回设计以使这些原型与设计模型保持一致的同时，可以将选择的元素作为原型来验证复杂概念。
    </li>
</ul><!-- begin - wsw -->
<p>
    在 Rational XDE 中，可以使用 J2EE 模式创建 EJB。请参考 Rational XDE 联机帮助中的以下主题：
</p>
<table cellspacing="2" cellpadding="2" border="1">
    <tbody>
        <tr>
            <th valign="top" align="left">
                操作
            </th>
            <th valign="top" align="left">
                请参阅
            </th>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    创建 EJB
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>EJB Creation</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_c_ejb_creation"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    创建 BMP 实体 bean
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Creating BMP Entity Beans</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_create_bmp_entitybean"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    创建 CMP 1.1 实体 bean
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Creating CMP 1.1 Entity Beans</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_create_cmp11_entitybean"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    创建 CMP 2.0 实体 bean
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Creating CMP 2.0 Entity Beans</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_create_cmp20_entitybean"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    指定 EJB 主键
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Primary Keys to Entity Beans</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_specify_primary_key"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    向 CMP 实体 bean 添加字段
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Container-Managed Fields to Entity
                    Beans</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_add_cmfields_entity_beans"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    创建有状态会话 bean
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Creating Stateful Session Beans</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_stateful_sessionbean"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    创建无状态会话 bean
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Creating Stateless Session Beans</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_stateless_sessionbean"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    创建消息驱动的 bean
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Creating Message-Driven Beans</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_message_driven_beans"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    从现有 Java 类创建 EJB
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Creating EJBs from Existing Classes</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_create_ejb_existing"); -->
                </p>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <p>
                    创建 EJB 的部署描述符（不部署）
                </p>
            </td>
            <td valign="top">
                <p>
                    <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Creating EJB Deployment Descriptors</i> 
                    <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_create_gen_depl_descr"); -->
                </p>
            </td>
        </tr>
    </tbody>
</table><!-- end - wsw -->
<p>
    有关更多信息，请参阅 Rational XDE 联机帮助中的以下主题：
</p>
<ul>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Working with Class Diagrams</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_o_work_w_class_dgms"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Modeling Java and Web Applications</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","j_o_java_mdling"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Modeling Java Elements</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","j_o_mod_jelem"); -->
    </li>
    <li>
        <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Modeling EJBs</i> <!-- end - wsw -->
    </li>
</ul>
<h3>
    <a id="Identify Interfaces" name="Identify Interfaces">确定子系统接口</a>
</h3><!-- begin - wsw -->
<p>
    下列步骤适用于大型子系统（大于单个 EJB 的子系统）：
</p>
<ol>
    <li>
        为每个子系统确定一组候选接口。向现有类图添加接口，或按照需要创建新的类图。（请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Shapes
        to Diagrams</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_shp_dgm"); -->。）&nbsp; 
        <!-- begin - wsw -->确保使用工具箱的 Java 选项卡（而非 UML 工具箱）来添加特定于 Java 的元素。&nbsp; <!-- end - wsw -->
    </li>
    <li>
        添加接口依赖关系。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Dependency Relationships</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_depend_relshp"); -->。
    </li>
    <li>
        通过添加从子系统到接口的实现关系，将子系统映射到接口。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Realization
        Relationships</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_realztn_relshp"); -->。
    </li>
    <li>
        记录接口，包括所需的行为。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Documenting Model Elements</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_doc_model_elem"); -->.
    </li>
    <li>
        向接口添加方法。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Operations to Classifiers</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_oper_clssfr"); -->。
    </li>
    <li>
        向每个操作添加描述。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Documenting Model Elements</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_doc_model_elem"); -->.
    </li>
    <li>
        向每个方法添加参数。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Parameters to Operations</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_param_op"); -->。
    </li>
    <li>
        将接口组织到包中。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Grouping Model Elements in Packages</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_group_mod_ele_package"); -->。
    </li>
</ol><!-- begin - wsw -->
<p>
    以下步骤适用于 EJB：
</p>
<ol>
    <li>
        EJB 接口是在创建 EJB 时生成的，因此无需单独创建 EJB 接口。
    </li>
    <li>
        添加接口依赖关系。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Dependency Relationships</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_depend_relshp"); -->。
    </li>
    <li>
        向接口添加方法。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Methods to an EJB</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"j","jee_t_add_ejb_meths"); -->。
    </li>
    <li>
        向每个操作添加描述。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /> <i>Documenting Model Elements</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_doc_model_elem"); -->.
    </li>
    <li>
        向每个操作添加参数。请参阅 <img alt="帮助手册图标" src="./../../../core.base_rup/resources/helpbook.gif" /><i>Adding Parameters to Operations</i> 
        <!--  Temporarily removed Javascript - ReferenceHelpTopic(topicTitle,"rs","rs_t_add_param_op"); -->。
    </li>
</ol>
<h3 class="reactive">
    <a id="Identify Capsule Protocols" name="Identify Capsule Protocols">确定封装体协议</a>（如适用）<br />
</h3>
<p class="reactive">
    Rational XDE 不支持封装体和协议建模。
</p></td>
</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="copyright">
<tr>
<td class="copyright"><p>
    &copy; &nbsp;Copyright IBM Corp.&nbsp;1987, 2006. &nbsp;All Rights Reserved.
</p></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script language="JavaScript" type="text/javascript">
				contentPage.onload();
			</script>
</html>
